using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class ColorChoicer : MonoBehaviour
{
    public Slider m_R;
    public Slider m_G;
    public Slider m_B;
    public Slider m_A;
    Image m_ColorPreview;
    public Color m_Color;
    void Start()
    {
        m_ColorPreview = GetComponent<Image>();
    }

    void Update()
    {
        m_Color = new Color(m_R.value / 255f, m_G.value / 255f, m_B.value / 255f, m_A.value / 255f);
        m_ColorPreview.color = m_Color;
    }
}
